import DvaIndex from "DvaCommon";
import { EntityModelConfig } from 'Configs';

const config = EntityModelConfig('Menu');

config.actionList.push(post("getMenuTreeNodes", "ViewMenu/GetMenuTreeNodes", "getMenuTreeNodes", "", true));
config.actionList.push(post("getMenus", "ViewMenu/GetMenus", "getMenus", "", true));

function post(actionName, url, stateName, dataKey, isToken) {
  return { actionName, url, method: "POST", stateName, dataKey, isToken };
}

export default DvaIndex(config);
